
package com.market.dao;

import java.util.List;

import com.market.bean.Product;

public interface IProductDAO extends GenericDao<Product, Long>
{

    public abstract Product findById(long id);

    public abstract Product findById(Class cla, long id);

    public abstract List getNewList(String category, final int max);

    public abstract List getHotList(String category, final int max);

    public abstract List getDiscountList(final int start, final int max);

    public abstract int getCountByDiscount();

    public abstract int getCountBySupplier(long supplierid);

    public abstract List findBySupplier(long supplierid, int start, int max);

}
